const Service = require('egg').Service;

class question extends Service {
    /*问题列表*/
    async questionList(pageNum,pageSize,categoryId,orderByField,beginDateTime) {
        const sendData = {
            pageNum,
            pageSize,
            categoryId,
            orderByField,
            beginDateTime,
        };
        return await this.ctx.service.base.getService('/device/mutualQuestion/list',sendData);
    }
    async questionContent(id) {
        return await this.ctx.service.base.getService(	'/device/mutualQuestion/detail',{ id });
    }
}

module.exports = question;

/**
 * Created by EDZ on 2018/9/27.
 */
